<?php
	require_once('./lib.php');
	error_log(print_r($config,true));
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title> PushLMS Assessment Session REST API Testing Application </title>
</head>
<body>
<h1>PushLMS Assessment Session REST API Testing Application</h1>
<table width="100%" border="1" bordercolor="#000000" cellpadding="2">
	<tr>
		<td valign="top">
			<p>LOGIN</p>
			<form action="/login.php" method="POST" target="output">
				<textarea name="XML" cols=50 rows=10><request><auth><username>000000001</username><password>test</password><assessment>1</assessment><course>1</course></auth></request></textarea>
				<input type="submit" value="LOGIN">
			</form>
		</td>
		<td valign="top">
			<p>GET XML</p>
			<form action="/question.php" method="POST" target="output">
				<input type="text" size="25" name="URL" value=""><br />
				<input type="submit" value="GET XML">
			</form>
		</td>
		<td valign="top">
			<p>POST ANSWER AS XML</p>
			<form action="/answer.php" method="POST" target="output">
				<input type="text" size="25" name="token" value="$token"><br/>
				<textarea name="XML" cols=50 rows=10><request><question id="?"><answers><answer id="?" /></answers></question></request></textarea>
				<input type="submit" value="SEND ANSWER">
			</form>
		</td>
	</tr>
</table>
<P><iframe name="output" width="100%" height="280" border="1" bordercolor="#000000" src="/blank.html" /></P>
</body>
</html>